home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / shells / tcshsrc.zoo / tcsh / config / config.sgi < prev    next >
Encoding:
Text File  |  1991-08-06  |  3.7 KB  |  161 lines

  1. /*
  2.  * config.h -- configure various defines for tcsh
  3.  *
  4.  * All source files should #include this FIRST.
  5.  *
  6.  * Edit this to match your system type.
  7.  */
  8.  
  9. /****************** System dependant compilation flags ****************/
  10. /*
  11.  * POSIX    This system supports IEEE Std 1003.1-1988 (POSIX).
  12.  */
  13. #undef POSIX
  14.  
  15. /*
  16.  * POSIXJOBS    This system supports the optional IEEE Std 1003.1-1988 (POSIX)
  17.  *        job control facilities.
  18.  */
  19. #undef POSIXJOBS
  20.  
  21. /*
  22.  * VFORK    This machine has a vfork().  
  23.  *        It used to be that for job control to work, this define
  24.  *        was mandatory. This is not the case any more.
  25.  *        If you think you still need it, but you don't have vfork, 
  26.  *        define this anyway and then do #define vfork fork.  
  27.  *        I do this anyway on a Sun because of yellow pages brain damage,
  28.  *        [should not be needed under 4.1]
  29.  *        and on the iris4d cause    SGI's fork is sufficiently "virtual" 
  30.  *        that vfork isn't necessary.  (Besides, SGI's vfork is weird).
  31.  *        Note that some machines eg. rs6000 have a vfork, but not
  32.  *        with the berkeley semantics, so we cannot use it there either.
  33.  */
  34. #undef VFORK
  35.  
  36. /*
  37.  * BSDJOBS    You have BSD-style job control (both process groups and
  38.  *        a tty that deals correctly
  39.  */
  40. #ifdef mips
  41. # define BSDJOBS
  42. #else
  43. # undef BSDJOBS
  44. #endif
  45.  
  46. /*
  47.  * BSDSIGS    You have 4.2-style signals, rather than USG style.
  48.  *        Note: POSIX systems should not define this unless they
  49.  *        have sigvec() and friends (ie: 4.3BSD-RENO, HP-UX).
  50.  */
  51. #undef BSDSIGS
  52.  
  53. /*
  54.  * BSDTIMES    You have BSD-style process time stuff (like rusage)
  55.  *        This may or may not be true.  For example, Apple Unix
  56.  *        (OREO) has BSDJOBS and BSDSIGS but not BSDTIMES.
  57.  */
  58. #ifdef mips
  59. # define BSDTIMES
  60. #else
  61. # undef BSDTIMES
  62. #endif
  63.  
  64. /*
  65.  * BSDNICE    Your system uses setpriority() instead of nice, to
  66.  *        change a processes scheduling priority
  67.  */
  68. #ifdef mips
  69. # define BSDNICE
  70. #else
  71. # undef BSDNICE
  72. #endif
  73.  
  74. /*
  75.  * TERMIO    You have struct termio instead of struct sgttyb.
  76.  *         This is usually the case for SVID systems, where
  77.  *        BSD uses sgttyb. POSIX systems should define this
  78.  *        anyway, even though they use struct termios.
  79.  */
  80. #define TERMIO
  81.  
  82. /*
  83.  * SVID        Your machine is SVID complient (Sys V, HPUX, A/UX)
  84.  *        NOTE: don't do this if you are on a Pyramid -- tcsh is
  85.  *        built in a BSD universe.
  86.  *        Set SVID to 1, 2, or 3, depending the version of System V
  87.  *        you are running. Or set it to 0 if you are not SVID based
  88.  */
  89. #ifdef mips
  90. # define SVID    3
  91. #else
  92. /* 
  93.  * For the 3000:
  94.  * We may not technically be compliant, and I don't know whether we are
  95.  * SVR1 or SVR2.  We're pretty System V-ish, though, so we won't say 0.
  96.  * We'll guess 1.  There are no checks for SVID <= 1 vs. SVID >= 2 at
  97.  * current writing anyway. 
  98.  */
  99. # define SVID    1
  100. #endif
  101.  
  102. /*
  103.  * YPBUGS    Work around Sun YP bugs that cause expansion of ~username
  104.  *        to send command output to /dev/null
  105.  */
  106. #undef YPBUGS
  107.  
  108. /*
  109.  * SIGVOID    Define this if your signal handlers return void.  On older
  110.  *        systems, signal returns int, but on newer ones, it returns void.
  111.  */
  112. #ifdef mips
  113. # define SIGVOID 
  114. #else
  115. # undef SIGVOID 
  116. #endif
  117.  
  118. /*
  119.  * HAVEDUP2    Define this if your system supports dup2().
  120.  */
  121. #ifdef mips
  122. # define HAVEDUP2
  123. #else
  124. # undef HAVEDUP2
  125. #endif
  126.  
  127. /*
  128.  * UTHOST    Does the utmp file have a host field?
  129.  */
  130. #undef UTHOST
  131.  
  132. /*
  133.  * DIRENT    Your system has <dirent.h> instead of <sys/dir.h>
  134.  */
  135. #define DIRENT
  136. /****************** local defines *********************/
  137. #ifdef mips
  138. /*
  139.  * IRIS4D    You are running on an Iris 4D
  140.  */
  141. # define IRIS4D
  142.  
  143. /*
  144.  * IRIX3_3    You are running IRIX 3.3 (or later)
  145.  */
  146. # define IRIX3_3
  147. #endif
  148.  
  149. #ifdef m68000
  150. /*
  151.  * IRIS3D    You are running on an Iris 3000 series
  152.  */
  153. # define IRIS3D
  154. #endif
  155.  
  156. /****************** configurable hacks ****************/
  157. /* have been moved to config_f.h */
  158. #include "config_f.h"
  159.  
  160. #undef NLS
  161.